﻿<ResourceDictionary
  xmlns="http://schemas.microsoft.com/client/2007"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:sys="clr-namespace:System;assembly=mscorlib"
  xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
  xmlns:controls="clr-namespace:Twilight.Controls"
  >
    <Style TargetType="controls:BubbleTweet">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="controls:BubbleTweet">
                    <Canvas x:Name="LayoutRoot">
                        <Path Canvas.ZIndex="2" Canvas.Top="0" Canvas.Left="15" Fill="#FFFFFFFF" Stroke="#FF000000" Data="M 0,11 L 7,-7 L 14, 11" />
                        <Rectangle x:Name="shadow" Canvas.ZIndex="0" Canvas.Top="88" Canvas.Left="4" Width="190" Height="10" StrokeThickness="0">
                            <Rectangle.Fill>
                                <RadialGradientBrush SpreadMethod="Pad" RadiusX="95" RadiusY="10" GradientOrigin="95,0" MappingMode="Absolute" Center="95,0">
                                    <GradientStop Color="#99000000"/>
                                    <GradientStop Color="#00000000" Offset="1"/>
                                </RadialGradientBrush>
                            </Rectangle.Fill>
                        </Rectangle>
                        <Rectangle x:Name="bubble" Canvas.ZIndex="1" Canvas.Top="10" Canvas.Left="4" Width="190" Height="78" Stroke="Black" StrokeThickness="1" RadiusX="3" RadiusY="3" Fill="{StaticResource tweetBack}" />
                        <controls:TweetBlock x:Name="tweetBlock" Canvas.ZIndex="3" Canvas.Left="8" Canvas.Top="12" Width="188" Text="{Binding Path=text}" TextStyle="{StaticResource TweetText}" LinkStyle="{StaticResource TweetLink}" />
                        <controls:TweetInfo x:Name="tweetInfo" Canvas.ZIndex="3" PostDate="{Binding Path=created_at}" From="{Binding Path=source}" Canvas.Left="8" Canvas.Top="88" Width="188" Height="14" TextStyle="{StaticResource LightInfoText}" LinkStyle="{StaticResource LightInfoLink}" />
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>